package io.bba.boot.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统轮播图参数
 *
 * @author xxcj
 * @since 2024-03-13
 */
@Data
@Schema(description = "系统轮播图参数")
public class SysBannerDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "轮播图类型 1：信息轮播图，2：广告轮播图")
    @NotNull(message = "轮播图类型不能为空")
    private Integer type;

    @Schema(description = "轮播图名称")
    @NotBlank(message = "轮播图名称不能为空")
    @Length(max = 64, message = "轮播图名称长度超过限制")
    private String name;

    @Schema(description = "轮播图图片路径")
    @NotBlank(message = "轮播图图片路径不能为空")
    @Length(max = 200, message = "轮播图图片路径长度超过限制")
    private String imageUrl;

    @Schema(description = "跳转类型 1：不跳转，2：跳转到信息详情，3：其他")
    @NotNull(message = "跳转类型不能为空")
    private Integer jumpType;

    @Schema(description = "跳转到业务ID")
    private Long jumpBusinessId;

}


